package com.pianzhu.blockchainemr.service.impl;

import com.pianzhu.blockchainemr.mapper.HospitalMapper;
import com.pianzhu.blockchainemr.pojo.Hospital;
import com.pianzhu.blockchainemr.pojo.MedicalType;
import com.pianzhu.blockchainemr.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalImpl implements HospitalService {
    @Autowired
    private HospitalMapper hospitalMapper;

    @Override
    public List<Hospital> list() {
        return hospitalMapper.list();
    }

    @Override
    public List<MedicalType> getMedicalType() {
        return hospitalMapper.getMedicalType();
    }
}
